// Log file
#pragma once
#include <windows.h>

using namespace System;

namespace GTA
{

	private ref class Log : MarshalByRefObject
	{
	public:
		Log::Log(String^ name, bool overwrite);
		static void Message( String^ msg );
		static void Warning( String^ msg );
		static void Error( String^ msg );
		static void Debug( String^ msg );
		static void Exception( System::Exception^ e );

	private:
		static Log^ CurrentLog;
		static String^ Name;
		System::String^ filepath;
		void logImpl( System::String^ content );
	};
};